package com.guigu.youxuan.mapper;

import com.guigu.youxuan.pojo.Outbound;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author liweixin
 * @since 2024-05-15
 */
public interface OutboundMapper extends BaseMapper<Outbound> {

    @Select("SELECT * FROM outbound WHERE pay_id = (SELECT MAX(pay_id) FROM outbound) ")
    Outbound getMaxDesignId();
}
